export default function () {
    class AppFilesent extends window.AUI.app.BaseComponent {
        constructor(name) {
            super(name);
            this.methods = {
                getFile() {
                    return this.$refs.file;
                },
                handleClick() {
                    var self = this;
                    this.$emit("sendfile", self.$refs.file);
                }
            }
        }
        _template() {
            var self = this;
            return `<div class="${self._name}">
        <input ref="file" type="file"><button class="aui-button" ref="button" type="button" @click="handleClick">sent</button>
    </div>`;        
        }
    }
    
    window.AUICustomComponents.define("app-filesent", AppFilesent); 
}